package com.example.demo.service.Impl;

import com.example.demo.dao.CompanyMapper;
import com.example.demo.dao.EnterpriseUsersMapper;
import com.example.demo.pojo.Company;
import com.example.demo.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    private CompanyMapper companyMapper;

    @Override
    public Company findById(Integer id) {
        return companyMapper.findById(id);
    }

    @Override
    public List<Company> query() {
        return companyMapper.query();
    }
}
